package com.dhl.proxy.staticproxy;

/**
 * @title: ThacherDap
 * @Author danghailiang
 * @Date: 2022/8/16 13:18
 * @Version 1.0
 */
public class ThacherDao  implements IThacherDao{
    @Override
    public void teach() {
        System.out.println("老师授课.......");
    }
}


class ProxyThacher {
 private IThacherDao tiger;
 public ProxyThacher(IThacherDao tiger) {
     this.tiger =tiger;
 }
    public void teach() {
        System.out.println("讲师授课前....");
        tiger.teach();
        System.out.println("讲师授课后....");
    }
}
